package com.coffee.admin.service.supplier.dao;

import com.coffee.admin.api.supplier.query.SupplierSystemDeployQuery;
import com.coffee.admin.service.supplier.bean.SupplierSystemDeploy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierSystemDeployDao {
    public SupplierSystemDeploy findById(Integer id);

    public SupplierSystemDeploy findByIdForUpdate(Integer id);

    public List<SupplierSystemDeploy> findByIds(@Param("idList") List<Integer> idList);

    public Integer count(@Param("param") SupplierSystemDeployQuery param);

    public List<SupplierSystemDeploy> page(@Param("param") SupplierSystemDeployQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

    public SupplierSystemDeploy findFirst(@Param("param") SupplierSystemDeployQuery param);

    public Integer insert(SupplierSystemDeploy param);

    Integer insertBatch(List<SupplierSystemDeploy> list);

    public void updateById(@Param("param") SupplierSystemDeploy param);

    public Integer deleteById(Integer id);

    public Integer deleteByIds(List<Integer> idList);

}